package org.example.springblogg.model;

import lombok.Data;
import org.example.springblogg.utils.DateUtils;
import org.springframework.boot.autoconfigure.data.cassandra.CassandraRepositoriesAutoConfiguration;

import java.util.Date;

@Data
public class BlogInfo {

    private Integer id;
    private String title;
    private String content;
    private Integer userId;
    private Integer deleteFlag;
    private Date createTime;
    private Date updateTime;

    public String  getCreateTime() {
        return DateUtils.dateFormat(createTime);
    }
}
